<template>
  <div class="login-container">
    <div class="login-weaper animated bounceInDown">
      <div class="login-left">
        <div class="login-time">
          {{time}}
        </div>
        <img class="img"
             src="https://www.layoom.top/rubbish/imgs/gh_df594359d313_344.jpg"
             alt="">
        <p class="title">塔大垃圾分类小卫士</p>
      </div>
      <div class="login-border">
        <div class="login-main">
          <h4 class="login-title">
            User Login
          </h4>
          <userLogin></userLogin>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import userLogin from "./userlogin";
export default {
  name: "login",
  components: {
    userLogin
  },
  data () {
    return {
      time: "",
      activeName: "user"
    };
  },
  watch: {

  },
  created () {
    this.getTime();
    setInterval(() => {
      this.getTime();
    }, 1000);
  },
  mounted () { },
  props: [],
  methods: {
    getTime () {
      this.time = this.dateFormat(new Date());
    }
  }
};
</script>

<style lang="scss">
  .login-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background: url("https://www.layoom.top/rubbish/imgs/17.jpg")
    0 bottom repeat-x #049ec4;
    animation: animate-cloud 20s linear infinite;
  }
  .login-weaper {
    margin: 0 auto;
    width: 1000px;
    box-shadow: -4px 5px 10px rgba(0, 0, 0, 0.4);
    .el-input-group__append {
      border: none;
    }
  }

  .login-left,
  .login-border {
    position: relative;
    min-height: 500px;
    align-items: center;
    display: flex;
  }
  .login-left {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    justify-content: center;
    flex-direction: column;
    background-color: #10c2ff;
    color: #fff;
    float: left;
    width: 50%;
    position: relative;
  }
  .login-left .img {
    border-radius:20px;
    width: 200px;
  }
  .login-time {
    position: absolute;
    left: 25px;
    top: 25px;
    width: 100%;
    color: #fff;
    font-weight: 200;
    opacity: 0.9;
    font-size: 18px;
    overflow: hidden;
  }
  .login-left .title {
    margin-top: 60px;
    text-align: center;
    color: #fff;
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 25px;
  }

  .login-border {
    border-left: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    color: #fff;
    background-color: #fff;
    width: 50%;
    float: left;
    box-sizing: border-box;
  }
  .login-main {
    margin: 0 auto;
    width: 65%;
    box-sizing: border-box;
  }
  .login-main > h3 {
    margin-bottom: 20px;
  }
  .login-main > p {
    color: #76838f;
  }
  .login-title {
    color: #333;
    margin-bottom: 40px;
    font-weight: 500;
    font-size: 22px;
    text-align: center;
    letter-spacing: 4px;
  }
  .login-menu {
    margin-top: 40px;
    width: 100%;
    text-align: center;
    a {
      color: #999;
      font-size: 12px;
      margin: 0px 8px;
    }
  }
  .login-submit {
    width: 100%;
    height: 45px;
    border: 1px solid #409EFF;
    background: none;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 300;
    color: #409EFF;
    cursor: pointer;
    margin-top: 30px;
    font-family: "neo";
    transition: 0.25s;
  }
  .login-form {
    margin: 10px 0;
    i {
      color: #333;
    }
    .el-form-item__content {
      width: 100%;
    }
    .el-form-item {
      margin-bottom: 12px;
    }
    .el-input {
      input {
        padding-bottom: 10px;
        text-indent: 5px;
        background: transparent;
        border: none;
        border-radius: 0;
        color: #333;
        border-bottom: 1px solid rgb(235, 237, 242);
      }
      .el-input__prefix {
        i {
          padding: 0 5px;
          font-size: 16px !important;
        }
      }
    }
  }

</style>
